package com.atguigu.spzx.model.entity.base;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author syh
 * @create 2023-08-12 16:48
 */
@Data
public class BaseEntity implements Serializable {
    @Schema(hidden = true)
    private Long id;
    @Schema(hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    @Schema(hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;
    @Schema(hidden = true)
    private Integer isDeleted;

}
